Leetcode-Question-726: Number of Atoms

Original Link:

https://leetcode.com/problems/number-of-atoms/

Solution: