Thanks to visit codestin.com
Credit goes to www.educative.io

4Sum

Try to solve the 4Sum problem.

Statement

Given an array nums of nn integers, return an array of all the unique quadruplets, [nums[a], nums[b], nums[c], nums[d]] such that:

  • 0≤0 \leq a, b, c, d <n< n ...