in reply to hash of hash

output:
     {'Hyundai' => {'In2017' => 20, 'In2018' => 30, 'In2019' => 50}}

In addition to the other problems and objections mentioned, I can't even figure out how the quoted output relates to the example input. If you're going to cheat, at least cheat coherently.


Give a man a fish:  <%-{-{-{-<