HackerRank Java String Tokens problem solution - TheCScience