Gemalto interview question

Swapped between 2 variable without 3rd A function for modular. A function for searching string.