Pergunta de entrevista da empresa Databricks

Building a LazyArray (OOP). Need to support two methods.