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