Implement Stack Operation Using Array In A Function