Thomson Reuters Interview Question

Determining the complexities of the program