Finish the method definition given below.
respondent_details
is an array of hashes. Each hash has a key :name
and a few other fixed keys :html
, :css
and :javascript
, each a section name. :name
stores the name of the respondent, while the other keys store the number of questions the respondent answered against respective section.
Given respondent_details
, the method should calculate the total number of questions answered by the respondents and store it in a key :total_count
in each hash. The method should then return the updated array of hashes.