Hackerrank Java Stdin and Stdout I Solution
Most HackerRank challenges require you to read input from stdin (standard input) and write output to stdout (standard output).
One popular way to read input from stdin is by using the Scanner class and specifying the Input Stream as System.in. For example:Scanner scanner = new Scanner(System.in);String