LTM Limited interview question

Basic java questions and easy coding question