Pregunta de entrevista de Xfers

Asked to do a leetcode coding question