Tag - time and space complexity

X