Toptal Interview Question

solving problems with data structures