You have described me. I was not diagnosed as autistic until I was in my 50s.
I have gone through life missing social cues not realising that I was pissing people off hugely. Add that to not being able to see that there could be more than one right answer (if I'm right and your answer, or the way you get to it, is different you're wrong)
It took a lot of work for me to recognise just some of how I came across to others, I'm less worse than I was, but still balls it up sometimes. I'm completely mortified when I look back at how I was and when I still catch myself boring people rigid now.
If you know someone like me keep reminding them, they will thank you in the long run.
It was not nice realising that I had fewer friends than I thought, just that some people are too polite to tell me I'm an annoying knob, but I'm getting there. In fact I'm happier now that I don't feel it necessary to make conversations.