Lumen interview question

Write single ton pattern in java