Enquero Interview Question

problems in python or scala