ABB Interview Question

not such difficult