Infosys interview question

moderate concepts of java and springboot