added solution to problem 5 in csharp