Here two of them were to find that the time complexity is Theta (N ^ 3) without much calculation.
First you select i<j<k in the range from 0 to N-1. The number of ways to select 3 objects from N is a binomial coefficient N choose 3 = N*(N-1)*(N-2)/(3*2*1) ~ (N^3)/6 = O(N^3) , or rather, Theta (N ^ 3).
Secondly, the upper bound is that you choose i, j and k from N possibilities, therefore there are no more than N*N*N = N^3 options. This is O (N ^ 3). You can also find the lower bound of the same type, since you can choose i from 0 to N / 3-1, j from N / 3 to 2N / 3-1 and k from 2N / 3 to N-1. This gives you at least a gender (N / 3) ^ 3 of choice, which is about N ^ 3/27. Since you have an upper bound and a lower bound of the same kind, the time complexity is Theta (N ^ 3).
source share