Exercise I had to do for an interview