Cognizant interview question

More in to technical and javascript questions