Coding exercise solution from the internship application process.