Can you solve this problem - C#