Tempus AI Interview Question

Write a function to efficiently return the midpoint of a singly linked list.