def METHOD_NAME(self,ele):
    temp = self.head
    i = 1
    flag = 0
    while temp.next != None:
        if temp.data == ele:
            flag = 1
            break
        temp = temp.next
        i += 1
    if flag == 0 and temp.data != ele:
        return -1
    return i