Ordered Printing

This problem is about imposing an order on thread execution.

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.