ImplicitCAD (ExtOpenSCAD) Cloud

linear_extrude (height = 30, twist = 180, center=true, r=2)
  union (r=2) {
    square([4,20], center=true, r=2);
    square([20,4], center=true, r=2);
  }

Console