Java Solution Count Pairs Whose Sum Is Less Than Target - Leetcode