Pregunta de entrevista de Hopper

Q: How did you resolve the hackerRanck problem and why?