WorkIPO interview question

In technical interview that give q for code