Problem Two

My solution to Problem Two in C#