balance
to 0.num
.balance
if it's in the first half of the string, or subtract 4.5 from balance
if it's in the second half.balance
accordingly, based on its position.balance
is not zero, return true
(Alice wins), otherwise return false
(Bob wins).