Leetcode 2613. Beautiful Pairs | Hello Interview