Pergunta de entrevista da empresa Coda

DSA problem and assignment to submit on github