A stack is implemented with an array A[0 .. N-1] and a variable pos. The push and pop operations are defined by the following code.
push(x)
A[pos] = x
pos = pos - 1
end push
pop()
pos = pos + 1
return A[pos]
end pop
Which of the following will initialize an empty stack with capacity N for the above implementation?
- A\(\text { pos } \leftarrow-1\)
- B\(\text { pos } \leftarrow 0\)
- C\(\text { pos } \leftarrow 1\)
- D\(\text { pos } \leftarrow N-1\)