Thumbtack interview question

Easy to medium level. Two OOD questions.