Create a function that takes a list consisting of dice rolls from 1-6. Return the sum of your rolls with the following conditions:
rolls([1, 2, 3]) ➞ 4
# The second roll, 2, counts as 0 as a result of rolling 1.
rolls([2, 6, 2, 5]) ➞ 17
# The 2 following the 6 was multiplied by 2.
rolls([6, 1, 1]) ➞ 8
# The first roll makes the second roll worth 2, but the
# second roll was still 1 so the third roll doesn't count.
Even if a 6 is rolled after a 1, 6 isn't summed but the 6's "effect" still takes place.