How to solve this combinatorics problem?
How to solve the following problem using combinatorics
https://www.codechef.com/ICL2019/problems/ICL1904/
Leetcode Weekly 498 Solution Discussion