In the program, Stack is implemented using 1 queue.
Assume, we are keeping two pointers front and rear which points to the head and the tail of the Linked List respectively.
Enqueue a new element at the tail (end) of the linked list and dequeue from the head(front) of the linked list.
Push operation needs O(n), because when push an element in the linked list (queue) we have to move all the previous elements in the linked list to the right of the newly inserted element, and Pop operation will need O(1).
Hence, (4) is correct option!