Oracle interview question

Implementation of Stack and making it efficient.