Frage im Vorstellungsgespräch bei Palantir Technologies

SQL, API calls, and algorithms question for HackerRank. Card game problem during first round technical interview.