They asked me to solve a data structures problem involving arrays and optimization of time complexity. How did you answer this question? (optional) I explained my approach step by step, starting with a brute force method and then optimized it using an efficient algorithm with better time complexity.