Nagarro interview question

notify and notifyAll from multithreading