Given a list of integers and a value, return the difference between the last and first position of the value in the list, or -1 if the value does not exist.
Given a list of integers and a value, return the difference between the last and first position of the value in the list, or -1 if the value does not exist.