counts.num in the array arr.
num is not in counts, add it with a count of 1.num is already in counts, increment its count.largest_lucky_number to -1.counts HashMap.
largest_lucky_number, update largest_lucky_number.largest_lucky_number.