Given an array of integers arr, a lucky integer is defined as an integer whose frequency in the array is equal to its value.
Return the largest lucky integer in the array. If no lucky integer exists, return
Constraints:
arr.length
arr[i]
Given an array of integers arr, a lucky integer is defined as an integer whose frequency in the array is equal to its value.
Return the largest lucky integer in the array. If no lucky integer exists, return
Constraints:
arr.length
arr[i]