PlayStation interview question

3 sql queries and one python problem