NIIT Limited interview question

Pattern based questions