Carousell interview question

Hackerrank test was on SQL and Python