WD Interview Question

write singleton pattern in java