Trying to build a program that can find the time complexity of a method.