Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
See if this link is any helpful: https://docs.codewars.com/training/training-example#debugging-a-kata
As far as I can see, your current code only works for 3 points. If you print the input, you'll see that sometimes your function is given less or more than that.
Print the input to help you debug your code, already told you what the problem is.
You assume the amount of points passed to your function is always the same. Not a kata issue.
We do not know what your solution is, so we do not know how to fix it. Sorry.