T. Rowe Price Interview Question

Basic algorithms questions for take home exercise