NovaSignal interview question

2d dynamic programming design stack and queues