changed challenge 3 hard from cpp to c#