JPMorganChase interview question

Three separate coding questions on Java