Booking.com Interview Question

Techniques question is leetcode count duplicate elements