GridGain interview question

e.g. to write a code that guarantees a deadlock to hapen.