4 ms·I don't know if it is against the rules, my approach was a recursive function.by bastiaanus 13y agoI don't know if it is against the rules, my approach was a recursive function.