JAVA 8 solution

P.S Not expected via Hacker Rank currently