Citi Interview Question

be thorough with the basics