Leetcode 3317. Find the Number of Possible Ways for an Event | Hello Interview