driver program
int main ( ) { string s ( " Ravi ▁ had ▁ been ▁ saying ▁ that ▁ he ▁ had ▁ been ▁ there " ) ; string firstWord = findFirstRepeated ( s ) ; if ( firstWord != " NoRepetition " ) cout << " First ▁ repeated ▁ word ▁ : : ▁ " << firstWord << endl ; else cout << " No ▁ Repetitionn " ; return 0 ; }