How to Repeat a Character n Times in Bash

What would you do if you needed to repeat a character such as OR = multiple times while writing bash script. I needed a quick script to work on Linux, macOS, and FreeBSD server to repeat a string/character n times.  Here’s how I built it.