Set Intersection Interview Bit Javascript