Amnet Group interview question

Mostly on SQL and python