Paytm Money interview question

Stock Market base scenario with high difficulty