dataxu interview question

Simple programming question