Handtmann interview question

How I solved a problem.