Merrill Interview Question

Math, programming and some brain teaser.