Infosys interview question

hibernate annotations, java data structure approach based question