https://medium.com/@vamsikrishchiguruwada/how-we-reverse-a-string-in-c-java-javascript-and-python-dcd49c743b34