Leetcode 2748. Number of Beautiful Pairs | Hello Interview