Check If Array Pairs Are Divisible By K Leetcode Solutions Java