ADP interview question

Class level lock and method level lock example