If half the distinct count is less than equals to K then palindromic string can be made
if ( ans <= k ) : NEW_LINE INDENT print ( " YES " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( " NO " ) NEW_LINE DEDENT