Code chef problems (CSharp)