Intuit Interview Question

Coding question where there is a simple problem to be solve. Typically an array problem. If time permits, the interviewer will add a constrain or an additional task over the first question answer, and you have optimize your solution. They always ask what would be the running time (complexity) of the solution.