Given the roots of two binary trees p and q, write a function to check if they are the same or not.
1
2
3