Citi interview question

Technical question