Repeated String hackerRank solution in C++

Published --