I’m not sure if you understand the context of the question so let me try and help by explaining the way people count their scores when playing golf.

Basically, every time you play a certain hole, you are told ahead of time how many strokes it usually takes to get the golf ball in the hole. So let’s say you are at hole #1, and you are told that the number of strokes expected here are 3.

Then you play and you get lucky and on the first try, your ball gets in the hole. This is called a ‘hole-in-one’. If it takes you 2 strokes to get your ball in the hole (one stroke less than expected), then this is called a ‘birdie’. And if you get your ball into the hole in exactly 3 strokes , this is called ‘par’ . These golf game terms are used to indicate your strokes in comparison to the expected number of strokes. So if you read the exercise, you can see these terms and other terms as well listed.

The question then wants you to fill out the function ‘golfScore’ such that you have two params . One is the par number (ie. the expected number of strokes) and the other is the actual number of strokes the player made. So for eg. as I explained earlier, if the number of actual strokes made by the player is equal to the par number then you call that a ‘par’ score. If it is one less , a birdie, if it is exactly one, it is a hole-in-one etc.

Does that help you get started? If not, let us know what you are struggling to understand.