Pregunta de entrevista de Indeed

Summary Ranges (LC228) Follow up: 1. duplicate element 2. negative element