Driver Code
public static void Main ( String [ ] args ) { String str = "99100" ; Console . WriteLine ( " String : ▁ " + str ) ; int start = isConsecutive ( str ) ; if ( start != - 1 ) Console . WriteLine ( " Yes ▁ STRNEWLINE " + start ) ; else Console . WriteLine ( " No " ) ; String str1 = "121315" ; Console . WriteLine ( " String : " start = isConsecutive ( str1 ) ; if ( start != - 1 ) Console . WriteLine ( " Yes ▁ STRNEWLINE " + start ) ; else Console . WriteLine ( " No " ) ; } }