C # program to find the lexicographically maximum substring .
using System ; using System . Collections . Generic ; class GFG { static string LexicographicalMaxString ( string str ) { char maxchar = ' a ' ; List < int > index = new List < int > ( ) ;