Sony Interview Question

straight forward