Tag - time complexity and space complexity

X