Question d’entretien chez TikTok

Coding interview: To write a program to determine highest profitable stock.