Shriffle interview question

What is the OOPs concept? How do you reverse a string * pattern