Wellhub interview question

A simple algorithm question for pair programming, which was done in an online IDE for JavaScript (very limited one, not like leetcode, etc). The system design question was a class reservation problem analogous to the own Classpass core idea.