9 time complexity: 78192