Jet interview question

functional programming