IBM interview question

Online medium-level leetcode problem and an sql problem.