TransUnion Interview Question

how to calculate time complexity of a code?