Amdocs interview question

few logical questions