Count Nice Permutations with GCD Condition | FE Prep