Citi interview question

be thorough with the basics