ZS Associates interview question

Questions were based on SQL and Python.