Merrill interview question

Maths, CS questions ... some brainteasers