Pregunta de entrevista de T. Rowe Price

Basic algorithms questions for take home exercise