Company: IDFC_27july
Difficulty: medium
Convert String to Binary Problem Description Given a string Str with only small case alphabets in it. Write a program that converts it into a binary string by replacing characters as per the given table: Character | Value ----------|------ a, b, c, g, e | 0 f, g, h, u | 0 i, j, k, l, o | 0 p, q, r, s, t | 0 u, v, w, x, y | 1 And, display the resultant binary string as an output. Read the input from STDIN and write the output to STDOUT. You should not write arbitrary strings while reading the input and while printing as these contribute to the standard output. Input Format The only line of input consists of a string with only small case alphabets in it. Output Format The output should display the resultant number after conversion. Constraints Input string Str must be in small case alphabets and no other special characters are allowed. Examples Example 1: Input: helloworld Output: 1000000100 Explanation: After converting the given string into a binary string "helloworld" as per the probl