Stack (Array)

(CODE)

Stack using array, stores the elements in an array. There is a limitation in storing the elements in an array as Array has a fixed sized which needs to be assigned at the beginning and it cannot be altered.