title: All possible permutations of multiple choice questions
body: <p>We've built a tool in C# that asks the user a series of multiple choice questions and then based on their answers it displays a list of products.</p>
  
  <p>We're not doing any complicated logic, we just have products associated with specific answers and if that answer is chosen, then that product is added to the list of results.</p>
  
  <p>We're ending up with scenarios where we're getting all products or no products, so we need to take a look at a more thorough way of coding our logic. </p>
  
  <p>To start, I'm building a utility app in C# to help us validate the tool. The first task I want the utility to perform is to return all possible combinations of answers. I'm getting stuck on this. This is one of those math problems that makes my head hurt. Here's what the questions look like:</p>
  
  <ul>
  <li>Question 1<br>
  <ul>
  <li>Answer 1  </li>
  <li>Answer 2</li>
  </ul></li>
  <li>Question 2<br>
  <ul>
  <li>Answer 1</li>
  <li>Answer 2</li>
  <li>Answer 3</li>
  </ul></li>
  <li>Question 3<br>
  <ul>
  <li>Answer 1</li>
  <li>Answer 2</li>
  <li>Answer 3</li>
  </ul></li>
  <li>Question 4<br>
  <ul>
  <li>Answer 1</li>
  <li>Answer 2</li>
  </ul></li>
  </ul>
  
  <p>Can some one get me started in right direction on how to accomplish returning a list of all possible combinations of answers via C#? Thanks.</p>