Driver code
public static void main ( String [ ] args ) { StringBuilder str = new StringBuilder ( "569431" ) ; int n = str . length ( ) ; int k = 3 ; System . out . println ( findMaximumNum ( str , n , k ) ) ; } }