This is pretty trivial - but it's your homework, so I'm not going to do it for you.
The code you have shown is close to what the question tells you to use, but not right: it doesn't refer to any of the arrays you declare, so it won't return the actual size of any of them. To do that, you would need:
int array1 [ ] = {1, 2, 6};
int array2 [ ] = {6, 1, 2, 3};
int array3 [ ] = {13, 6, 1, 2, 3};
int sizeOfArray1 = sizeof(array1) / sizeof(array3[0]);
int sizeOfArray2 = sizeof(array2) / sizeof(array3[0]);
int sizeOfArray3 = sizeof(array3) / sizeof(array3[0]);
But the question specifically wants you to create a function to accept any array:
bool firstLast6(int array[ ], int size);
and then call it passing each array and its size in turn:
... firstLast6(array1, sizeOfArray1) ...
... firstLast6(array2, sizeOfArray2) ...
... firstLast6(array3, sizeOfArray3) ...
I'm being careful here not to give you the solution, you notice: you need to do something with this code to use the result it returns.
So create the function (with dummy content if necessary), set up the main function to call it and test that it works.
Then write the real content for the function and test that. The question is pretty explicit about what you have to do and does give you everything you need to know to complete this.
Give it a try!