Varsity Tutors interview question

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