Handtmann Interview Question

How I solved a problem.