This doesn't look like much but the assignment was to use as few variables as possible and using the original variable assignment of:
var str1 = " one "; var str2 = " two "; var str3 = " three "; var str4 = " four ";
Make the document.write below say 4, 3, 2, 1
document.write("<p>" + str1);
document.write(str2);
document.write(str3);
document.write(str4 + "</p>");
var str5 = str2; var str6 = str1; str1 = str4; str2 = str3; str3 = str5; str4 = str6;
So there.....