Payoneer interview question

I remember only the question on SQL where you had to write the query. With some HackerRank practice, easy to solve