Visa Inc. interview question

write a SQL using joins