Seems like an interview reflects their internal culture, where they totally don't respect a person's time. They don't know how long it might take to finish a task (which might lead to pressure from a manager who decided to set fairy deadlines). They don't really care about an employee, so the same situation might be repeated during working days - ignorance of your efforts.
After 1:1 short call with a manager I was asked to make two "small" production-ready applications within 2 hours (or maybe 4 don't remember). I decided to make it during weekends and spent overall 25h.
You can say it's my fault doing it so long, BUT
- 2 independent application with it's own logic had to be designed and implemented with the best practices.
- it had to be prod ready
- had to have all unit tests,
- had to have theoretical proofs,
So from my perspective, it was a task with wrong estimates.
The worst thing, that they even did not respond back, leaving me with my negative experience.