Leetcode 2097. Valid Arrangement of Pairs | Hello Interview