Accenture Interview Question

basic coding question like pattern ,palindrome, and etc