Buenos días comunidad. Espero todos se encuentren bien. Ante todo me disculpo por los varios post que he hecho publicando este problema pero no encuentro la opción para editar o eliminar los primeros que hice. Vengo a pedir su ayuda para resolver un problema que dicta lo siguiente:
Andrea and Maria each have an array of integers. Andrea wants to change her array to match Maria's. For each element of her array, she can increment or decrement one digit in one item in one move. How many moves will it take Andrea to match Maria's array?. No reording of the digits is allowed.
Adrea's = 123,543 and Maria's = 321,279
Function Description:
Create a function. The function must return the integer number of moves to convert Andrea's array to match Maria's