Game Play Analysis 4 Leetcode Solution