create a histogram project via converting an array to a hash and sorting in descending order; include detailed explanation