Create Balanced Smileys

O(n) solution