Zoho interview question

3. Program to form a diamond pattern with given number: suppose 7