General Motors (GM) interview question

OOPS concept, java basics and all