Subsplash Interview Question

How to do something with an Algorithm.