Shipgig interview question

oops concepts, basic programming logics etc