What is the time complexity of pop () operation when the stack is implemented using an array?a) O (1)b) O (n)c) O (logn)d) O (nlogn)