Programming question help

You are given n people in a row, k of whom are infected with a disease, number of ways in which disease can spread to all n people considering At any point it only spreads from one person to one of its neighbour.

is this the complete question?


i can not solve it …
help me out please…

First try your code, if feel any issue/error - you’re free to ask