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 ( ) ; Dictionary < int , int > mp = new Dictionary < int , int > ( ) ;