Radialpoint interview question

Not hard