Infocusp interview question

Two Python coding questions were asked.