SimplePractice interview question

Algorithm and design questions.