Bounded-Shift Permutation Count — Coding Problem — CareerVerse