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