Tinder 店面

https://leetcode.com/problems/word-search but you are given 2D int board and you need to find a number:

public boolean exist(int[][] board, int num) {
}