If you have a stack of size N, then how will you check if the top is pointing to the middle index? code example
Example: can we push or pop a name from middle of the array
var suits = ["hearts", "clubs", "Brooks Brothers", "diamonds", "spades"];
suits.splice(2, 0, "Brooks Brothers");
console.log(suits);