Efficiently Counting Non-Common Element Pairs in JavaScript | CodeSignal Learn