PowerSchool Group interview question

Write code for finding count of recurring numbers