Amewas Interview Question

Please explain your approach to problem solving.