title: Check if at least two out of three booleans are true
body: <p>An interviewer recently asked me this question: given three boolean variables, a, b, and c, return true if at least two out of the three are true.</p>
  
  <p>My solution follows:</p>
  
  <pre><code>boolean atLeastTwo(boolean a, boolean b, boolean c) {
      if ((a &amp;&amp; b) || (b &amp;&amp; c) || (a &amp;&amp; c)) {
          return true;
      }
      else{
          return false;
      }
  }
  </code></pre>
  
  <p>He said that this can be improved further, but how?</p>