using System.Collections.Generic;
public static void Main()
string text = "The quick brown fox jumps over the lazy dog.";
string firstSymbol = "<b>";
string secondSymbol = "</b>";
List<int[]> arr = new List<int[]>
foreach (var value in arr)
int AddedLenghtForNextIndex = value[0] + previousIndex;
string textValue = firstSymbol + text.Substring(AddedLenghtForNextIndex, value[1]) + secondSymbol;
previousIndex += firstSymbol.Length + secondSymbol.Length;
.Remove(AddedLenghtForNextIndex, value[1])
.Insert(AddedLenghtForNextIndex, textValue);