Citi Interview Question

As mentioned the above paragraph