The question that comes to my mind reads this: "Linear with respect to what?" Remember that in mathematics, all variables must be defined as meaningful. Big-O is no exception. Just saying that the O (n) algorithm does not make sense if n is not defined.
Assuming the question was significant and not a mistake, I assume that they wanted you to ask for clarification. Another possibility is that they wanted to see how you would respond when presented with an impossible situation.
source share