Pregunta de entrevista de Software Engineering

Coding Question based on array and strings