Hi, below is my solution. Is it O(n^2) or O(n^3)?

```
public class Solution {
public int threeSumSmaller(int[] nums, int target) {
int ret = 0;
Arrays.sort(nums);
if(nums==null || nums.length<3) return ret;
for(int i=0;i<nums.length;i++){
for(int j=i+1;j<nums.length;j++){
int left = j+1;
while(left<nums.length){
if(nums[i]+nums[j]+nums[left]<target){
ret++;
left++;
}else break;
}
}
}
return ret;
}
}
```