Microsoft interview question

Leetcode easy (Linked list, queues, arrays)