Input: A string that contains zeros, ones, and question marks. Question marks may be replaced with either one or zero.
Given such string input, find all the possible strings that can be created from it.
Write a C++ function that returns all possible results.
Given the string "0?1"
, the following strings can be created:
001
011