Zillow interview question

Write a method for converting a String to long