Maximum Length Chain Of Pairs Leetcode