Count Partitions With Max-Min Difference at Most K — CaffeCode