Revature interview question

Global Variable vs Local Variable