Character Function That Returns a Number

Company: BlackRock

Difficulty: easy