Welcome, I am Cory. Thank you for asking your question today.
This is a known scam that has been going around for awhile. They call you with a broken accent from a foreign country and say they are Microsoft and you have computer issues.
They charge you a crazy amount of money to do work that probably doesn't need to be done.
If they charged you, please contact the credit card company for a refund.
Microsoft will not call you and say you have an issue with your computer. If this happens again, you know it is a scam and should hang up.
If they accessed your computer remotely, then you want to install and run Malwarebytes to scan your computer to make sure it is secure.
You can download Malwarebytes here. - https://www.malwarebytes.com/
Click on Free Download, install and run it.
I hope I have answered your question today. Let me know if you have anymore questions.