C# coding Task on Array