Amdocs interview question

Core java programs on loops