Amdocs interview question

Threads phases