Amdocs interview question

Data structure and JAVA