Write binary_strings(n: int) -> list[str] that returns every string of length n made of the characters "0" and "1". There are 2^n of them. They can come back in any order (the tests sort them).
binary_strings(2) # ["00", "01", "10", "11"]
binary_strings(1) # ["0", "1"]
binary_strings(0) # [""] one string of length 0
0 <= n <= 12.- Write the recursion yourself; don't use
itertoolsor count from0to2^n - 1in binary.
Show hint
build(path) makes one choice per position. If path has n characters, record it. Otherwise append "0" (choose), call build (explore), pop it (un-choose), then do the same with "1".