Fi Money Interview Question

Do you know sql. Answer this query