Question d’entretien chez Zillow

Write a function that takes a string and produces a signed 64 bit integer (long) that the string represents, i.e. long parseLong(String). You can assume the input is in base 10.