Massive Mobility Interview Question

Using closure write multiple filtration code for the data