Java Hackerrank Solution For Big Numbers