CycloTech interview question

How to solve problems with changes