Reference: LeetCodeDifficulty: Problem Note: Example: 1 Follow up: AnalysisBrute-Force1 Time:Space: 快乐源泉😄1 Time:Space: