Coda interview question

DSA problem and assignment to submit on github