Design greedy interval scheduling for max non-overlapping intervals

Analyze the design greedy interval scheduling for max non-overlapping intervals.

Examples
Input: "[[0,1],[1,2],[10,11],[20,22],[21,23]]"
Output: "[[0,1],[1,2],[10,11],[20,22]]"
Hints

Design greedy interval scheduling for max non-overlapping intervals

Analyze the design greedy interval scheduling for max non-overlapping intervals.