Let A and B be the sets {1,2,3...10} and {1,2,3...20} respectively. A function is selected randomly from A to B. The probability that the function is non-decreasing is

A. 216
B. 540
C. 792
D. 840