Capco Interview Question

Not very deficult