Problem:
Question- Write the iterative and recursive versions of a function that takes in two vectors a and b, both are vector, and returns whether a is a sub-vector of b, a is a sub-vector of b, if we can find an exact copy of a in some contiguous block of elements of b. For example, [1 -2 5 3] is a sub-vector of [10 -2 1 -2 5 3 4 6 8], but it is not a sub-vector of [10 -2 1 -2 5 4 36 8].
Please show code with comments so I can follow what you are doing.