Accenture interview question

Implement a CPU scheduling algorithm