Tessian interview question

Write an algorithmic solution for given problem and then add some environmental constrains that changes your solution a lot.