Need help with my solution (CHEFSQ)

My Solution is Working fine on the given test case but i am getting wrong answer.
My solution Link:-
https://www.codechef.com/viewsolution/27534510
Question Link:-

Your logic does not actually compare the numbers just checks if second array is smaller.Will not give correct answer when the second array is different and not inside first one.
like input
1
5
1 2 3 4 5
2
2 4
By your logic should gives yes while actually it shall be no.
as 2 4 is not in the upper array.
(The question clearly tells to see if the second sequence is completely inside first sequence.)