The code Output Originally the program was written in Python. I converted the program to Bash Built With bash Try it out github.com