A classic problem that catches the common mistake of only checking immediate children instead of maintaining global bounds through the recursion.
Enable JavaScript for the full StreamPrep guide.