Data Edge Interview Question

database relation, cartesian join, and swap without extra variables.