Rating System In Leetcode Problem