ProDIGIQ interview question

Some easy LC question on data structures