GFT Technologies interview question

don't remember. Some simple algorithm.