Pregunta de entrevista de IBM

coding assessment where they asked 2 question