Toptal interview question

Print the average of a nested array's elements.