Enquero interview question

problems in python or scala