Add your Outlook.com account in Outlook for Windows - Microsoft Support
"If you try to add your Outlook.com account to Outlook and it repeatedly asks you for a password and will not accept the password you know is correct, you may have two-factor authentication enabled."
See the instructions in the "Adding an Outlook.com account if you use two-factor authentication" section.