This is a sample solution to the problem Br Bob Flaherty
This is done by starting with the left most candle and see if the value is greater than or equal 64 if so we light it, and then move to the next one that is 32, then 16, then 8, then 4, then 2, then 1