PayPal Interview Question

Given a (excel sheet) column title write a program to return its corresponding number [Leetcode 171].