Walmart Global Tech interview question

Java multithreaded synchronisation and deadlock