Eaton interview question

String operations in python, manual functions definition. Loops.