Compulink interview question

Not very hard