Amazon interview question

Preemptive Multithreading