test time complexity