Pergunta de entrevista da empresa Rolls-Royce

Had a short SQL and python test