Prosper.com Interview Question

Stack operations using array.