Driver code
public static void Main ( String [ ] args ) { String str = " geeksforgeeks " ; int len = str . Length ; int l = 5 , r = 7 ; Console . WriteLine ( reverse ( str . ToCharArray ( ) , len , l , r ) ) ; } }