JPMorganChase Interview Question

Three separate coding questions on Java