The interview started and the interviewer scanned through my resume and asked me questions about my work, projects, etc.
The interviewer then copy-pasted a problem on the coderpad. The question was fairly simple and I asked follow - up questions that involved getting the input - constraints. The interviewer was not interested in having communication with me; so I told that I will assume the length of the string is INT_MAX, because then I can iterate through the string.
I started coding and in 20 mins cleared all the tests and dry run my code for him to understand.
He then pasted another question on coderpad and asked me to solve the question. After this, he became mum. The question involved a function that will call another function, will run tests on an object that will declare something in constructor, will do something and return type was something that was declared somewhere in the code but there was no explanation about what it is returning and how it is working. Like I said, the interviewer was not interested in the interview from the start and he kept doing something else. So at this point I was trying to actually understand all the setup that he created for testing and after spending 5 minutes, I asked him " Can you help me understanding this ? ". What does dictionary here means. He didn't care to explain me. So I coded the problem removing the return type and it didn't compile, so I explained him the logic about how I would be doing it. He didn't listen to my logic because at the start of the problem, I also explained him the logic about how I would be doing it, he then asked me to explain it to him again, because he was doing something else.
In the end, I was thinking about what happened and had realization that why do people treat the interviewees like this? If you didn't had interest in hiring me, let me know straight away.