Pergunta de entrevista da empresa Bloomberg

Can you write an algorithm for calculating stock prices throughout a day