Company: Flipkart_10Dec
Difficulty: medium
Word to Number Coding Problem Description Draw a solution to a coding-decoding problem where one "word" is coded into a number. Create a program that accepts a word as input and prints its corresponding numeric code. The coding scheme works as follows: each letter in the word is replaced by its 1-based position in the English alphabet. The resulting numbers are then concatenated to form the final code. This process is case-insensitive. For example, 'A' or 'a' is 1, 'B' or 'b' is 2, ..., 'Z' or 'z' is 26. Examples Here are some examples from the problem description: Input: word = "Happine" Output: "811616914519" Explanation: H -> 8 a -> 1 p -> 16 p -> 16 i -> 9 n -> 14 e -> 5 Concatenating these gives 811616914519. Input: word = "CIVIL" Output: "3922912" Explanation: C -> 3 I -> 9 V -> 22 I -> 9 L -> 12 Concatenating these gives 3922912. The output is the same for "civil". Sample Input 1 Input: DENOTE Output: 451415205 Sample Input 2 Input: CIVIL Output: 3922912 Constraints Length of th