Code exercise for Rally Software interview