Pergunta de entrevista da empresa BerkleyNet

1) Explain what is singleton, how do I synchronize it 2) How will I find duplicates in n items. Use any data structure you want. 3) How would you store a counter in your application which denotes the number of visitors.