Within each category, find pairs of products whose prices differ by less than 500. Return category, product_a, product_b (each pair once) and gap (absolute difference).
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.