Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Think about simulating the process to calculate the answer.
Iterate over each element and check the previous two elements. See if one of them is 10 and can affect the score.