TenantBase Interview Question

Code challenge from github repo