Point72 interview question

How would you design algorithm to generate maze