CAn you please tell me what is the mistake i am commiting
hey @sattyrajpoot39, this is recursive relation for this problem. Code it according to this
count(n) = 1, when 1 < = n < m
count(n) = 2, when n = m
count(n) = count(n-1) + count(n-m) when m < n