Write and run a C++ program that reads the input data from theinput file and produces an output file, palindromes.txt, containingall the palindromes in the input file. A palindrome is a word,phrase, or number, or sequence of characters which reads the sameforward or backward.
For this QUIZ you will need to create and use an input file called words.txt: Abcba 5 b5 gfg hgd ryz zaaz uww a MImA jkl nml stu
OR
OR