v5 time O(2^n) space O(2^n) Accepted