what is time complexity of the algorithm

visit shbcf.ru