Amazon Interview Question

Involving dynamic programming, queue, stacks recursive programming