How to solve Leetcode 1679. Max Number of K-Sum Pairs