Add a function to this project that splits an amount of money between several parties by weight, for example splitting a restaurant bill or a revenue share. Put it in src/main/kotlin/Allocate.kt, top level, with exactly this signature: fun allocate(totalCents: Long, weights: List): List Rules: - The result has one share per weight, in the same order. - The shares must add up to exactly totalCents. Not one cent may be lost or created. - Each share is the exact proportional share (totalCents * weight / sum of weights) rounded down or up to a whole cent, never further away. - Use the largest remainder method: first give every party its rounded-down share, then give the leftover cents one at a time to the parties with the largest fractional remainders. If two remainders are equal, the party with the lower index gets the cent first. - A negative totalCents is allowed and is the mirror image: allocate(-x, w) must equal allocate(x, w) with every share negated. - Throw IllegalArgumentException if weights is empty, if any weight is negative, or if all weights are zero. - It must work for any Long totalCents above Long.MIN_VALUE and any Int weights, without overflowing.