2 test cases are failing . Help needed

https://ide.codingblocks.com/s/258353 this is my code and https://hack.codingblocks.com/app/contests/1617/173/problem is the problem ( intersection of 2 arrays )