[LintCode] Maximal Square