GoodRx Interview Question

Hacker Rank SQL and Python Question