Intersection pf two arrays- Hashmap

it is showing run time error.

The problem is solved