Cognizant interview question

Write a java program for palindrome cheking. Printing a pyramid with *