calculating ncr using loop(ncr=n-1Cr-1 + n-1Cr