Bluestock Fintech interview question

1) Max in a array, reverse a linked list