Pergunta de entrevista da empresa Google

Design an algorithm that predicts where a ball will exit a given maze based on its entry point.