Pregunta de entrevista de Nagarro

based on strings and matrix