AT&T interview question

a lot of python/json/sql questions