breaking the records hackerrank solution in java