23andMe interview question

Multiple questions on sql joins and cursors.