Qualtrics interview question

Design a program to find the percolation path given a 5x5 array