Google Javascript Coding Interview Problems