Senseforth.ai interview question

Reverse a String , Pattern Programs ,Duplicates