LTM Limited interview question

Core java question and spring boot question