Pregunta de entrevista de OpenBet

Given a number multiply each digit with a number