✅ How to solve this problem? - C#