Check if number sequence can be generated using stack push and pop operations

Related Tags