Complexity of an algorithm means how the time and data or input are related, on a graph. Does the algorithm take more time as the data increases, or does it stay same, etc?
There is a notation, Big O notation (e.g. O(n)) that is used to demonstrate this. For your algorithm, I would recommend that you try it yourself, plot the time, data graph and then see if the graph increases or not. The function that is makes on the graph, is the complexity. This is the simplest way to find the overall complexity, because you can visualize it and then map it to the nearest mathematical function — log(n), n
2, n etc.
For your help, here is a cheat sheet that you can use to check what complexity does that algorithm hold,
Big-O Algorithm Complexity Cheat Sheet[
^].
A complex way to find complexity can also be found here,
How to find time complexity of an algorithm - Stack Overflow[
^]