XYZ (Turkey) Interview Question

reverse linked list max element in array