Fawry interview question

How to solve some SQL Problems