wikioi 9.12
leetcode 9.12