Hello guys! I thought of posting this question in General Discussion but I had to post it in Interview Questions so that I can be anonymous here.
Microsoft is one of my dream companies to join and I have prepared a lot for past 8 months for giving interviews in top five companies, I have recently given 2 online assesments for Micorsoft hiring events with 1 month gap (cool down period). Below are the screenshots of my questions and answers of one of the exams. I have initially prepared all the Microsoft OA questions in Leetcode and prepared my own solutions in Python3 in my local editor. To my delight I got same and super easy questions that I have prepared in both the exams and I could write near to perfect code but unfortunately I got the rejection emails on both the exams within 24 hours of my submission. I heard that MS genrerally sends the exam to the Software engineers for the evaluation. I wrote both of my exams on Sundays and I got the result on next Monday around 2 pm PT which makes me feel that my test has not even reached till an engineer and might have been rejected by the OJ (purely my assumption, I might be wrong). I am kinda going crazy as I am not able to figure out what the exact problem is. Also the MS recruiters would generally send the feeback on rejection but in my case neither of the both recruiters have given me any feedback. Can someone understand what the issue here is by looking at the screenshots that I have attached below. Sorry, I am typically helpless and had to post this. I am badly looking for some feedback so that I won't repeat my mistakes next time. Thanks in advance.
Screenshots:
OA1:
Q1:


My answer (passed all the visible test cases):

Q2:

My answer (Passed all the visible test cases):

Q3:


My answer (Passed all the visible test cases)

Addionally I wrote some comments in the code and also wrote the time + space complexity for each question in the exam.
(For simplicity I am not posting my second OA question and answers but I again got familiar questions and was able to write near to perfect solutions for all the questions in my OA2 too and got rejected in the exact same manner).
Possible reasons why I might have failed?
Please help guys! Thanks in advance.