Amdocs interview question

win win spiral