Please use C, C++ or Java programming language to design.
A palindrome is a word, phrase, number or other sequence of units that can be read the same way in either
direction. For example, "5812185" and "lifeefil" are both palindromes. Given a file of all ASCII texts. Find the positions
and corresponding length of all palindromes (length > 2) occurred in this text file, output (offset, length) as the result.
For example, in "mississippi", we can output the palindroms occurrences as the following:
(1, 7) ississi
(1, 4) issi
(2, 5) ssiss
(3, 3) sis
(4, 4) issi (7,
4) ippi