Recursively revert a string using only main()