Citi Interview Question

I was also asked to solve a puzzle, which not technical.