Alarm.com Interview Question

What is encapsulation? Create a program which reverses the order of words in a string.