solutions upto Array#to_hash (incl.)