Created a simple program to reverse text using an array list.