Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Can we distribute the money according to the rules if we give 'k' children exactly 8 dollars?
Brute force to find the largest possible value of k, or return -1 if there doesn’t exist any such k.