Kabam Interview Question

boggle solver algorithm