Count Valid Permutations with Jumps | FE Prep