Count the permutation

4

8 votes
Algorithms, Approved, Dynamic Programming, Easy, Grammar-Verified, Recruit, Two dimensional

?