Pregunta de entrevista de Snowflake

DSA problems involving geometry, monotonic stack and binary search.