Tech Mahindra Interview Question

write a pojo class write a singleton class