Pergunta de entrevista da empresa Cognizant

One coding question and JavaScript concepts