Wrong Answer But Sample Cases working

Sample test cases are working and the (n-1)C(r-1) formula is also working correctly but still wrong answer