AKQA technical interview exercise written in ruby