IBM Interview Question

Intro and stack and queue, Dp