Given a positive integer n, print triangle-shaped patterns to the console (e.g., left-aligned, right-aligned, or centered) consisting of characters such as * or numbers. The pattern must have n rows and follow the specified alignment and character rules.
Given a non-empty string, determine whether it is a palindrome. A palindrome reads the same forward and backward. Return a boolean indicating if the string qualifies under the given constraints (e.g., case sensitivity, alphanumeric-only if specified).

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?