Given an array of integers nums and an array goodNumbers, return the maximum number of consecutive good numbers in the array.
Any number present in the goodNumbers array is a good number.
Your notes are automatically saved in your browser's local storage and will persist across sessions on this device.