Pregunta de entrevista de Coda

DSA problem and assignment to submit on github