Codewars - Advanced 6

The goal of this quest series is to improve your programming and algorithmic skills
Goals
- Improve your programming and algorithmic skills
Codewars Katas
You need to resolve this Codewars Kata
↗
Molecule to atoms
codewars.com