Write a function that creates histograms. Every bar needs to be on a new line and its length corresponds to the numbers in the array passed as an argument. The second argument represents the symbol to be used to represent the bar.
histogram([1, 3, 4], "#") ➞ "#\n###\n####"
#
###
####
histogram([6, 2, 15, 3], "=") ➞ "======\n==\n===============\n==="
======
==
===============
===
histogram([1, 10], "+") ➞ "+\n++++++++++"
+
++++++++++For better understanding try printing out the result.