Please provide hint for this question ( question link in description )

https://mycode.prepbytes.com/problems/arrays/FAVOURITES