[LintCode] Number of Islands