Bloomberg interview question

Count islands problem Validate binary search tree