Codey and Alphabetical Scoring
https://www.hackerrank.com/contests/codenection-2023-test/challenges/challenge-1-250
Question
A has score of 1, B has score of 2, ... Z has score of 26. Given a string s, find the score of the string.
Input Format
The first line contains a string s.
Constraints
It is guaranteed that all the letters in string
sare uppercase alphabetical letters.
Output Format
Output the total score of the string.
Sample Inputs:
Last updated