why did intialized stack to a new ll in constructor.even though the data type of stack is already a ll
Linkedlist as stack
@jainavni902_3ed230c9d40e02f8 Inside the constructor we made object of the stack using the new operator. We globally initialized stack but it needs to be given an object inside constructor.