decide whether an array is a possible pop array according to its push array