Example 1.
input :
array1[8] = { 3, 12, 1, 12, 7, 8, 19, 13}
array2[4] = {12, 7, 8, 19}
output : 1
Example 2.
input:
array1[8] = {3, 12, 1, 12, 7, 8, 19, 13}
array2[3] = {12, 7, 19}
output: 0
In the first example, array2 is contained in order, but in the second example there is an 8 between 7 and 19, so array2 it is not found in order.