Ericsson interview question

Array problem solving question in python