To solve this problem.
sign in on xbox.com with the hotmail email and the password
choose the country where you are from and click send code
now you will receive the sms on your mobile phone with a code which will allow you to unlock the account.
After you have verified the account with your phone number, you can log in on your Xbox One and download the game.