Hii
If your Android phone screen lock isn't unlocking with the correct code, it is unlikely that Microsoft or any external entity changed your password. Double-check the code, restart your phone, and check for updates. Use Google's "Find My Device" or Samsung's "Find My Mobile" to unlock or reset the password. As a last resort, perform a factory reset to erase all data. If the issue persists, contact your phone's manufacturer support.