Oracle Interview Question

Implementation of Stack and making it efficient.