Amdocs interview question

difference between local and global variables