Vanguard Interview Question

Write some code to solve a problem