LTM Limited interview question

Questions related to dsa on java