GlobalLogic Interview Question

Write max count using Java8