An solution in C# for LeetCode problems