Leetcode 1434. Number of Ways to Wear Different Hats to Each Other | Hello Interview