CitiusTech interview question

What are the 4 pillars of OOPS? Write a code to reverse a string