improve w4 q5 answer
s/{}/[]/ in hash reference
fix typo