Web Chilly interview question

about data structure & oops