Write a python program that efficiently computes the probability that a random permutation of r ones and w zeros contains k consecutive ones.
Write a python program that efficiently computes the probability that a random permutation of r ones and w zeros contains k consecutive ones.