Publicis Sapient Interview Question

Q: Given a large dataset containing time-series data, design an efficient Python function to identify anomalies in real time. Discuss your approach to handle large data processing, including memory optimization, and outline which algorithms or statistical methods you'd use for anomaly detection