fix a typo bug in problem4, mask direction error
finish coding problem2 479 level
finish problem2 579