I have a nested hash:
Hash = { "abc" => { "def" => { "count" => 120 } } ,
"ABC" => {"DEF" => { "COUNT" => 100 } },
"sample" => {"samplecode" => {"COUNT" => 3 } } }
I want to convert the entire hash into lowercase. If any duplicates exist, I want to add the count value. The resulting hash should be:
Result = { "abc" => { "def" => { "count" => 220 } } ,
"sample" => { "samplecode" => { "count" => 3} } }