Removing the last character from a string

Published: Monday 13 November 2023

This coding challenge involves you to remove the last character from a string.

It involves writing a RemoveLastCharacter function, passing in the string as a parameter.

Begin with this function:

public string RemoveLastCharacter(string value)
{

}

Now go ahead and write some code that will return the value without it's last character.