Find the number of ways to make the sum S if dices are rolled together -- Google