โ† HSBC questions
CodingEasy

Sum of sequence based on character mapping

Filed under HSBC

Given a string consisting of characters A-G, calculate the total sum based on the mapping: A=1, B=10, C=100, D=1000, E=10000, F=100000, and G=1000000.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related HSBC questions

Collected from public candidate posts and coding forums. Updated Nov 2026.