PTC interview question

oops concept and spring related question