TD Interview Question

calculate the complexity (Big O) of a given algorithm