You are given a positive integer N.Your task is to print a palindromic triangle of size N.
For example, a palindromic triangle of size is:
1121123211234321123454321
In this challenge, the user enters a string and a substring. You have to print the number of times that the substring occurs in the given string. String traversal will take place from left to right, not from right to left.