Function to replace all ' ? ' characters in a string such that the given conditions are satisfied
static void fillString ( String str , int k ) { char s [ ] = str . toCharArray ( ) ; HashMap < Integer , Character > mp = new HashMap < > ( ) ;