Solving the HackerRank Challenge: Java StdIn and StdOut II

Solving the HackerRank Challenge: Java StdIn and StdOut II