Demonware interview question

LC Easy and medium question One debugging code