Swimm Interview Question

Try to create the product's main algorithm