function that returns true if the given sub - string can be arranged into a Palindrome
static boolean canBePalindrome ( HashMap < Integer , Integer > count ) { for ( HashMap . Entry < Integer , Integer > entry : count . entrySet ( ) ) if ( ( entry . getValue ( ) & 1 ) == 1 ) return false ; return true ; }