Implement Stack Operations Using Array In A Function