OppFi interview question

Write a program to calculate the score for a common game.