dbt Labs Interview Question

Q: medium difficulty coding question