Pregunta de entrevista de Capital One

Code signal standard problems with string and array manipulation