Amazon interview question

Involving dynamic programming, queue, stacks recursive programming