Edmodo Interview Question

Leetcode original question, application of data structures and algorithms