Solution to problem 1

The program’s logic as explained in the club meeting is as follows:

1) Find the number of occurrences of each character in the word.

2) If there are more than two characters with an odd number of occurrences, a palindrome cannot be formed by shuffling the elements.

3) If there are no elements with an odd number of occurrence or if there is only one element with an odd number of occurrence, then a palindrome can be formed.