Added solution for CSharp.