Embitel Technologies interview question

Java threading and some coin puzzles