text: If previous character is '1' then we put only 0 at end of string example str = "01" then new string be "010"
code: if ( str [ n - 1 ] == '1' ) { str [ n ] = '0' ; generateAllStringsUtil ( K , str , n + 1 ) ; }