Calculating time complexity for an algorithm

Published --