Tala interview question

Python coding question involving pandas