HackerRank Java Stdin and Stdout I problem solution - TheCScience