Shipgig Interview Question

oops concepts, basic programming logics etc