Pergunta de entrevista da empresa Auriga IT

Dp question on stocks they opened leetcode to solve it