Java Program to Iterate through each characters of the string | Vultr Docs