Pergunta de entrevista da empresa CirrusLabs

What is encapsulation and write a program to find leap year.