Juniper Networks interview question

Second coding challenge was on python.