Vyrazu Labs interview question

How to implement encapsulation in code?