Pergunta de entrevista da empresa Philo

From the ground up, implement a concurrent server with a bespoke TCP-like protocol that manages a fixed-capacity LIFO data structure. The server supports asynchronous push operations, which append variable-length payloads to the stack, with blocking semantics when the stack is full. It also supports asynchronous pop operations, which retrieve the top element, returning a length-prefixed payload, and block when the stack is empty. Request processing must adhere to the order of complete reception. Edge case requirements are also provided. A given test suite and an additional secret test suite validate your work. The test suite is inconsistent with the specifications, so that's also fun. Do all of this in four hours, and do feel free to write extra tests because you'll definitely have extra time. If you're a frontend developer by trade, have fun working entirely outside your wheel house!