Java language.
Write a function that, given a string of digits, checks to see ifthese digits can be arranged to form a palindrome. If it is notpossible, return -1. Otherwise, return one possiblepalindrome.
Please remember this is not checking just of it is a palindrome.For example 11110 still can be a palindrome. Numbers only nowords.
Expert Answer
An answer will be send to you shortly. . . . .