Xaba interview question

How can you apply ransac algorithm for detecting planes in your geometry.