Pergunta de entrevista da empresa Cognizant

what is recursion and write a code for the same?