Frage im Vorstellungsgespräch bei Target Integration

Question 1: Python program to check whether the paranthesis are balanced Question 2: Python program to print fish pattern Solved the first question successfully, was getting a minor error in the second question, told the interviewer about the error, he told me straightforwardly, that if I am unable to solve the question, I am out of the process. The company just waste the time of the people, they only hire the freshers who are too perfect to work at their low package.