Flipkart Interview Question

3Sum and Minimum Size Subarray sum brute force solution and optimized solution with time complexity