Sezzle interview question

DS problem