there n people split unknown number group each person label unique ID 0 n 1you give integer array groupsize groupSizesi size group person for example groupsizes1 3 person 1 group size 3return list group person group size groupsizesieach person appear exactly group person group if multiple answer return it guarantee valid solution give input Example 1input groupsize 3333313output 5012346explanation the group 5 the size 1 groupsizes5 1the second group 012 the size 3 groupsizes0 groupsizes1 groupsizes2 3the group 346 the size 3 groupsizes3 groupsizes4 groupsizes6 3other possible solution 2165043 5062431example 2input groupsize 213332output 105234 ConstraintsgroupSizeslength n1 n 5001 groupSizesi n