Capital Trust interview question

Basic Oops question and some question about data structures