Apple interview question

it was a CTF like lab test