you give 2D array integer envelope envelopesi wi hi represents width height envelopeone envelope fit width height envelope great envelope width heightReturn maximum number envelope russian doll ie inside othernote you rotate envelope Example 1input envelope 54646723output 3explanation the maximum number envelope russian doll 3 23 54 67example 2input envelope 111111output 1 Constraints1 envelopeslength 105envelopesilength 21 wi hi 105