CME Group Interview Question

Write code to solve a problem problem. Done in pairs