Amazon interview question

Stack, Manipulation of array type questions