Count Array Pairs Divisible By K Leetcode Javascript