You are given three integers n, pos, and k.
There are n people standing in a line, indexed from n 'L', or right, denoted by 'R'.
A person at index i is visible to the observer at index pos if:
i pos and the person at i faces left ('L').
i pos and the person at i faces right ('R').
The direction chosen by the person at index pos does not affect the count of visible people.
Return the total number of valid direction assignments for all n people such that exactly k people are visible to the observer at index pos.
Constraints:
n
pos, k n
You are given three integers n, pos, and k.
There are n people standing in a line, indexed from n 'L', or right, denoted by 'R'.
A person at index i is visible to the observer at index pos if:
i pos and the person at i faces left ('L').
i pos and the person at i faces right ('R').
The direction chosen by the person at index pos does not affect the count of visible people.
Return the total number of valid direction assignments for all n people such that exactly k people are visible to the observer at index pos.
Constraints:
n
pos, k n