N Queens, Valid BST

Exercises from LeetCode, both are accepted