OppFi interview question

Design a score algorithm for a bowling game