iRhythm Technologies interview question

Python questions, reorder string, for loop, try except