Java Data Types Hackerrank Solution