The Zappos Family interview question

programming question : implement parse integer method.