Varsity Tutors Interview Question

Explain how to solve the problem you just completed step by step.