Quantexa Interview Question

Several questions about functional programming.