Anonymous interview question

Asked my on python basic analyst equations