More functions and More nested loops

Tasks - Functions and Nested loops

0 is Palindrome

Write a function called isPalindrome that takes a string as input and returns 1 if the string is a palindrome, and 0 otherwise.

A palindrome is a word, phrase, number, or other sequence of characters that reads the same forward and backward, ignoring spaces, punctuation, and capitalization.

1 Mery christmas

Write a function to print the following pattern using nested loops:

1
22
333
4444
55555

2 Prime number checker

Write a function called isPrime that takes an integer as input and returns 1 if the integer is a prime number, and 0 otherwise.