Rue Gilt Groupe interview question

Write a simple javascript image carousel without any library code.