Write a program to print a numeric pyramid pattern (1 / 1 2 1 / 1 2 3 2 1 / 1 2 3 4 3 2 1).
Asked in the round 1 stage.
Implement numeric_pyramid(n), where n is the number of rows. Return the pattern as a string containing one space-separated row per line, with no trailing newline. The caller may print the returned string.
n.1 through n, where each row ascends from 1 to its row number and then descends back to 1.def numeric_pyramid(n):