As mentioned by @Mohamed above in mathematical terms, the complexity for the code in question is O(n^3).
Quick explanation(worst case i.e. looping through the entire loop):
Outer FOR loop complexity = O(n)
Inner FOR loop complexity = O(n)
Total complexity so far = O(n^2)
Now, in my question I had mentioned there was an operation inside the inner FOR loop which had a complexity of O(n) --> which is almost the same as 1 more FOR loop inside the Inner FOR loop, that makes the total complexity O(n^3).