Snowflake Interview Question

Design logging system + implement a solution to check if tree is unival