Another simple task from interviews of LinkedIn