Intact interview question

Asked me a easy-mid Dsa question and also just some python knowledge