CycloTech Interview Question

How to solve problems with changes