give integer array pushed pop distinct value return true result sequence push pop operation initially stack false example 1input push 12345 pop 45321output trueexplanation we follow sequencepush1 push2 push3 push4pop 4push5pop 5 pop 3 pop 2 pop 1example 2input push 12345 pop 43512output falseexplanation 1 pop 2 Constraints1 pushedlength 10000 pushedi 1000all element push uniquepoppedlength pushedlengthpoppe permutation push