Pregunta de entrevista de HCLTech

recursion question and array related question