https://videosashka.com/watch/8zkfZIsZsL4/alternating-characters-hackerrank-solution-in-java