Udemy interview question

How could you break this function?