For customers with 2+ orders, find the longest gap in days between two consecutive orders as max_gap. Use CTEs.
max_gap
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.