1. Trapping rain water
  2. Spiral Matrix
  3. Count inversions
  4. Find pair in a sorted rotated array
  5. Maximum index
  6. Rearrange an array so that arr[i] becomes arr[arr[i]]
  7. Rearrange an array such that arr[i] = i
  8. Rotate an array