Please answer the following questions:
1) Work out the exact time complexity T (n) of the followingpiece of code in terms of the number of operations:

2) You have found empirically that the implemented sortingmethods A of complexity Θ(n^3) and B of complexity Θ(n^2 log10 n)spent 2
PayPal Gateway not configured
PayPal Gateway not configured