Whatnot interview question

1. First question was an easy DSA array question. 2. Second one was the same question but on a 2D array.