Guardhat interview question

to pass Python assessment test .