Nokia Interview Question

Something along the lines of algorithms