NIIT Limited interview question

Related to CV and about basic algorithms