Cognizant Interview Question

print palendrome , print triangle