Netskope interview question

Leetcode stack/queue problem. Hashmap problem.