Pergunta de entrevista da empresa Ant International

How to resolve lock in sql, what method to use