SECOND AMENDED AND RESTATED CREDIT AGREEMENT dated as of June 30, 2017 among HAWAIIAN ELECTRIC COMPANY, INC., as Borrower The Lenders Party Hereto and WELLS FARGO BANK, NATIONAL ASSOCIATION, as Syndication Agent and