working on coding problems for palantir interview