Amdocs interview question

Algorithms, collections, logics