PharmEasy interview question

Questions around sql joins, python functions