Find every unique quadruplet [a, b, c, d] in nums that sums to target. Two approaches, same problem — switch between them and watch how time trades off.
[a, b, c, d]