Booz Allen Hamilton interview question

Solve a logic problem using only API calls