RBC interview question

work through project