Start by carefully defining your requirements. What does it mean for an array to be part of another array? For example, let's consider:
Code:
int array1[] = {1, 3, 2, 4, 5, 7, 6};
int array2[] = {3, 2, 4};
int array3[] = {1, 5, 7};
int array4[] = {4, 6, 7};
In the case of array2, its elements match a contiguous subsequence of array1. Is array2 part of array1? In the case of array3, its elements match a subsequence of array1. Is array3 part of array1? In the case of array4, each of its elements is equal to some element in array1, without regard for order. Is array4 part of array1?