SRM 339 DIV 2 easy & mid

It's difficult set.
easy makes me think about 'exception handling'
mid makes me try for 'English skill'