Problem 1114 · Easy
Force three threads to print first, second, then third by making each method wait for the previous one.
Open the interactive visualisation