Snowflake Interview Question

2 ptr approach (x1) HashMap / Recursion (x1)