Carousell Interview Question

Hackerrank test was on SQL and Python