Last Updated: 18 Sep, 2020

Hourglass Pattern

Moderate
Asked in company
ZIGRAM

Problem statement

You are given an integer N and you have to print the following pattern.

For N=5:

Alt Text

For N=6:

Alt Text

Input Format:
The first and only line of input contains an integer, that denotes the value of N.
Output Format:
Print the pattern, as described in the problem statement.
Constraints:
1 <= N <= 50
Time Limit: 1 second