Help me in solving CSB050 problem

My issue

string var = “String”;
Console.Write(var[-]);
Console.Write(var[-]);
Console.Write(var[-]);
}

My code

//Replace the _ with the correct value

using System;

namespace MyApplication
{
    class Program
    {
        static void Main(string[] args)
        {
            string var = "String";
            Console.Write(var[-]);
            Console.Write(var[-]);
            Console.Write(var[-]);
        }
    }

Learning course: Learn C#
Problem Link: CodeChef: Practical coding for everyone

@barca000
U have to write in _ like this.

//Solution as follows

using System;

namespace MyApplication
{
    class Program
    {
        static void Main(string[] args)
        {
            string var = "String";
            Console.Write(var[0]);
            Console.Write(var[1]);
            Console.Write(var[2]);
        }
    }
}   // Closing bracket was missing