Problem 1114 · Easy

Print in Order

Force three threads to print first, second, then third by making each method wait for the previous one.

Open the interactive visualisation