Note that $p$ must be a permutation, so elements of $a$ being in $b$ implies that $a$ must be a subarray of $b$.
Note that $p$ must be a permutation, so elements of $a$ being in $b$ implies that $a$ must be a subarray of $b$.