2K interview question

(no individual questions, just a coding test)