A function to find the second most repeated word in the array. After counting occurrences with a Map, it sorts these counts using an insertion sort algorithm. The function then matches the second highest frequency back to its corresponding word, demonstrating a blend of mapping, sorting, and searching techniques for array analysis.