Validate alternating checkout/return logs | Meta Interview Question