Smiths Detection interview question

3. Implement a custom vector class.