Develop three functions that must satisfy the Big-O requirements as shown below
(1) Develop a function that uses a loop to calculate xn in O(n)
(2) Develop a function that recursively calculate xn in O(n)
(3) Develop a function that recursively calculate xn in O(logn)
Use the following numbers to test each function
a) x = 2 n = 10
b) x = 2 n = 30
c) x = 2 n = 50
You can have one program that consists of three functions described above.