A coding challenge i had to do for a job interview.