API Coding Challenge for job interview