I have written a simple function that checks if the provided note is valid by looping over an array and comparing values.
The code always returns false a
false