Pregunta de entrevista de Nan

Asking to solve array and string based easy problems