<gouthampradhan>math_BulbSwitcherII_1.java
public int flipLights(int n, int m) {
    if (n == 0 || m == 0) return 1;
    if (n == 1 && m >= 1) return 2;
    if (n == 2) {
      if (m == 1) return 3;
      if (m >= 2) return 4;
    } else if (n >= 3) {
      if (m == 1) return 4;
      if (m == 2) return 7;
    }
    return 8;
  }
public int sample_funcname ( int var_0 , int var_1 ) {
  if ( var_0 == 0 || var_1 == 0 ) return 1 ;
  if ( var_0 == 1 && var_1 >= 1 ) return 2 ;
  if ( var_0 == 2 ) {
    if ( var_1 == 1 ) return 3 ;
    if ( var_1 >= 2 ) return 4 ;
  }
  else if ( var_0 >= 3 ) {
    if ( var_1 == 1 ) return 4 ;
    if ( var_1 == 2 ) return 7 ;
  }
  return 8 ;
}
