Hello All,
Please check out the below questions which was asked in the technical interview of Reverie Language company for the Data Engineer role.
Question 1:
Given a number, find the sum of digits till sum is one digit
Input: 199
Output: 1
Explanation:
1 + 9 + 9 = 19
1 + 9 = 10
1 + 0 = 1
Question 2:
Given lower case char indices - 1-26, upper case char indices - 27-52. Calculate the sum of all char indices of a given string.
Example: “aBcD”
Result: 62
Explanation: 1 + 28 + 3 + 30 = 62