Coforge interview question

1. Create a thread safe singleton class 2. Merge two input arrays and have them sorted using linear time complexity 3. Balanced braces