103: Longest palindrome

Given a string with lower and upper case letters, return a length of the longest palindrome that can be built with those letters

 

Example 1

Input:   abAca

Output:  3

Explanation: aba or aAa etc

Example 2

Input:   ABba

Output:  1
Difficulty:Easy
Topic:HashSet
Problem #:103