Amazon Interview Question

Easy/Medium leetcode sql livecode test.