SpanIdea interview question

write a code to implement your own vector