my attempt at solving leetcode 2553: separate the digits in an array [SOLVED]

Published --