@oduvan , I think following is better.
function bestStock(data: {[item: string] : number}): string {
Thanks.
7
10
5