Tech Mahindra interview question

write a pojo class write a singleton class