Mobileye interview question

easy - medium leet code problems in python