Utility for testing the given sequence to be correct output for a number of push's and pop's for a stack