Thanks for the questions. But I have a question does interviewer helps interviewee in a quest of finding a solution to the problems or is it just a latter has to figure it out by himself apart from some syntax help.
Hello Vikas. It really depends on the question but technically the interviewer is there to also help. The key though is that the candidate cannot just say I'm stuck or I don't know just help me. One of the great skills that is highly appreciated is to know how to ask for help by formulating good questions.
The way you formulate them gives a peek into your problem solving thinking.
Often times too what I have seen making things problematic for a candidate was to think about a perfect performant solution from the get go instead of thinking about a solution that works first. Refactor and performance usually can come later.