Pregunta de entrevista de Databricks

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