Reorganize String - Tesla Interview Question - Leetcode 767 - Python