LTM Limited interview question

Problems solving on Arrays easy