Test case 2 failing.
my code
https://ide.codingblocks.com/s/62939
Intersection of two arrays(hashing)
Hi Anant, please see that your ans is not correct even for the sample case.
Tip: pls try to solve it with another strategy. Also the correct solution/logic is not so complex as you have made.
Hint: Sort any one of the 2 arrays and then Try to use 2 iteratators.
Pls try the question again now 
Yes, I got it, thank you!!