Pregunta de entrevista de Anaplan

Best time to buy stocks python question