Pregunta de entrevista de StoneX

Mostly SQL queries and basic python functions question