Flatiron Health Interview Question

Data challenge and sql problem