NielsenIQ interview question

Two sum problem and implement stack with a queue.