Cognizant Interview Question

What is Encapsulation? Pyramid Pattern in Java