Bosch Interview Question

Create an algorithm with a given complexity, based on a specific problem.