ProtoTech Solutions interview question

Oops concept, pointers and geometry