Driver code
public static void main ( String [ ] args ) { System . out . println ( isPalindromePossible ( " bbg " ) ) ; System . out . println ( isPalindromePossible ( " bdababd " ) ) ; System . out . println ( isPalindromePossible ( " gcagac " ) ) ; } }