LTM Limited interview question

Some basic coding site questions