How to write a program that reads a line of text, changes each letter to the lowercase, and place in a queue and onto a stack. The program should then verify whether the line of text is palindrome.