starts and ends.flower = [start, end] in flowers:
start to starts.end + 1 to ends.starts and ends.ans and iterate over each person in people:
starts for the rightmost insertion index of person to find i.ends for the rightmost insertion index of person to find j.i - j to ans.ans.