Anaplan interview question

Best time to buy stocks python question