Pregunta de entrevista de JPMorganChase

Basic questions in java, Oops, problem-solving