Talk is cheap. Show me the code.
Problem : https://www.hackerrank.com/challenges/java-end-of-file/problem
Solution :