Qualtrics Interview Question

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