Shutterfly interview question

Some assembly level algorithm