The correct answer is C, O(n) whether the tree is balanced or unbalanced.
The logical reasoning behind in inorder traversal is that for each node you
- traverse the left sub-tree of the current node
- print/traverse the current node and
- traverse the right sub-tree of the current node.
In any case, balanced or unbalanced you essentially only visit all the nodes once. Since you are visiting all the nodes the time complexity will be equal to the number of nodes, i.e. n.
Additional context: In the case of search in a binary search tree time taken to search a node would be O(log n) if the tree is balanced, O(n) otherwise.