Maximum length palindrome that can be created with characters in range L and R
Given a string str and Q queries. Each query consists of two numbers L and R. The task is to find the maximum length palindrome that can be created with characters in the range [L, R]. Examples: Input: str = "amim", Q[] = {{1, 4}, {3, 4} Output: 3 1 In range [1, 4], only two palindromes "mam" and "m