practice for LeetCode in C#