Solve four OA algorithm problems | Snowflake Interview Question