Given below 3x3 matrix, solve it.
1|2|3 -+-+- 4|5|6 -+-+- |8|7
Appreciate if you could provide code for DFS or BFS
https://leetcode.com/problems/sliding-puzzle