hackerrank day 6 solution in javascript

mugshots and arrest in hamilton county tn