My Implementation in C# of the mid term for Advanced Programming Exam