Pergunta de entrevista da empresa Deutsche Bank

Why DB? Tell my about a time you have failed Inheritance, polymorphism, ... Java question how to add "1234"+"56" to get 1290

Resposta da entrevista

Sigiloso

4 de fev. de 2020

create method to turn string into integer. Parse the string and turn each character into an int and add it to a stack. Then use the position of the stack to multiply the int with the power of 10 that is in that position ex. 4x10^0 + 2x10^1.... and after both numbers converted to int add them