Vyrazu Labs Interview Question

How to implement encapsulation in code?