Robert Bosch interview question

method overriding program calculate length of an array without inbuilt functions