Petco Interview Question

Basic oops in first round second round based on programming