Google interview question

A question about deadlock.