Sollicitatievraag bij Palantir Technologies

two basic leetcode easy questions and a leetcode medium question