Citi interview question

question about the design components