Implement LazyArray with Deferred Function Execution
Design a LazyArray class that supports functional transformations (like map) but defers execution until a terminal operation (like indexOf) is called.
Check more interview questions and experiences about Databricks
