Accenture interview question

basic coding question like pattern ,palindrome, and etc