Add new Algo FindFirstRepeatedElem a c/c++ implemention