Array intersection in hashing

https://ide.codingblocks.com/s/372917 is not passing my test cases though output is correct ,unable to remove extra comma in my output

Modified Code

i have make the changes you can see that

in this way its showing wrong output 2 should come twice not thrice

2 is also coming thrice in the previous code which you have provided

the mistake is at line no 26
correct condition is if(m[brr[i]]>=1)
Modified Code