Code for an online coding test for Palantir