Possible Palindrome

Published by supafly in

Create a function that determines whether it is possible to build a palindrome from the characters in a string.

Examples

PossiblePalindrome("acabbaa") ➞ true
// Can make the following palindrome: "aabcbaa"

PossiblePalindrome("aacbdbc") ➞ true
// Can make the following palindrome: "abcdcba"

PossiblePalindrome("aacbdb") ➞ false

PossiblePalindrome("abacbb") ➞ false

Notes

N/A

Watch a quick demo on how Edabit works.