A standard-sized golf course has 18 holes. Each hole is given a par, which is the expected number of strokes (hits) that a good player would use to complete a hole. Golf also uses different terms for a player being over/under par for a particular hole:
Example scores:
Given a list of pars for an 18-hole golf course, and another list containing the player result for each hole, return the total score for the round of golf.
course = [4, 4, 5, 3, 4, 4, 3, 5, 5, 3, 5, 4, 4, 4, 4, 3, 4, 4]
result = ["eagle", "bogey", "par", "bogey", "double-bogey", "birdie", "bogey", "par", "birdie", "par", "par", "par", "par", "par", "bogey", "eagle", "bogey", "par"]
score = 2+5+5+4+6+3+4+5+4+3+5+4+4+4+5+1+5+4 = 73
For this challenge, there will be no holes-in-one, albatrosses (-3), or anything worse than a double-bogey.