#: PairsOfIndices solution