Cognizant Interview Question

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