Javascript Loops Interview Questions