Pregunta de entrevista de Capital One

String related question, finding max height of students