Driver code
public static void main ( String [ ] args ) { String str = "129814999" ; int k = 4 ; max = str ; findMaximumNum ( str . toCharArray ( ) , k ) ; System . out . print ( max + "NEW_LINE"); } }