How to solve? - C#