Driver code
public static void Main ( string [ ] args ) { string input = " Geeks ▁ For ▁ Geeks ▁ " ; GFG gfg = new GFG ( ) ; Console . WriteLine ( " The ▁ length ▁ of ▁ last ▁ word ▁ is ▁ " + gfg . lengthOfLastWord ( input ) ) ; } }