Prosper.com interview question

Stack operations using array.