Amdocs interview question

Practice java code to write things recursively