Write a function that accepts the width and height (m, n) and an optional proc s and generates an array with m elements. Each element is a string consisting of either:
#) repeating n times (if null is given).n times.makeRug(2, 1, "tct") ➞ [
"tct",
"tct"
]
makeRug(3, 5, null) ➞ [
"#####",
"#####",
"#####"
]
makeRug(3, 5, "$") ➞ [
"$$$$$",
"$$$$$",
"$$$$$"
]
makeRug(2, 6, "A") ➞ [
"AAAAAA",
"AAAAAA"
]The use of Optional container object is required for this challenge.