SpanIdea Interview Question

write a code to implement your own vector