Infosys interview question

Spring, hibernate java