Pergunta de entrevista da empresa Infosys

Stock buy and sell problem