Please provide hint for this question ( see description )

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