Worst kind of interview ever. The interviewer appears to be a fresher or lesser experience where he searches for the questions from geeksforgeeks sitting in the interview panel and expecting the 1st solution that comes up even if better and optimised solution is given. He himself doesn't understand what the problem is when I asked him to explain it. Really embarrassing situation. If not interested in hiring, don't schedule the interview and make the candidate come down. This would be better than asking a lesser technical guy to sit for the interview panel just to reject the candidate.