Appalling interview.
Summarize: Interviewer was having breakfast and not listening to the exercise at all, not asking questions or providing hints if the direction of the interview was correct.
The interview starts by stating they are more interested in having an end result not caring about the though process.
I checked the day before similar question about converting a text into a HTML parser but I thought this will not be the case, first of all I am not applying for a frontend job and the question to develop included at least 5 rules to develop which includes an unreasonable amount of parsing. Interviewer even stated almost at the end of the interview he didn't know what I was writing as he was not paying attention.
Such a waste amount of time. Do not lose your time applying there.
On the positive side the recruiter was friendly but that ends there.