SpanIdea interview question

c++ oops dsa pointers arrays