// Question:
// Example input:
// "some text"
// [0, 4) / “some” -> X
// [5, 8) / “tex” -> Y
// [3, 6) / “e t” -> Z
//
// You need to output consecutive (non-overlapping) chunks of text with the same set of annotations:
// Output for the example input:
// [0, 3) / “som” -> X
// [3, 4) / “e”-> X,Z
// [4, 5) / “ “ -> Z
// [5, 6) / “t” -> Z, Y
// [6, 8) / “ex” -> Y