I was solving the following job interview question and solved most of it but failed at the end.
Init - Initialise Empty DS. O(1) Time complexity.
Init