Colgate-Palmolive Interview Question

They asked a timed knowledge based programming question, as well as one question we were given 24 hours to complete.