https://onlinegdb.com/rkZZ5jHtv
Every function has its own variable scope. Meaning that variable with the same name in different function will be different variable. Except for global variables which are defined outside of the function.
If you want to use int arr[SIZE] in NumGame function, where int arr[SIZE] variable is defined in main function, you need to pass it as an argument to NumGame so it receives the expected value.
You will have to modify your function like this
int NumGame(int arr[SIZE], int digit, int counter);
Then in main function, you also need to pass arr when you call NumGame.
In main function, the call will be:
NumGame(arr, digit, counter);
Now NumGame has the reference of int arr[SIZE] which is defined in main function.
But you need to remove the int arr[SIZE] variable definition in the NumGame function. Since in the same scope you cannot have the same variable name.