Equifax Interview Question

Answer this leetcode sql problem