CriticalRiver interview question

py fundamentals and sql queries