Pregunta de entrevista de Booking.com

Techniques question is leetcode count duplicate elements