Frage im Vorstellungsgespräch bei Flipkart

Machine coding round. Design a machine whose state can be queried asynchronously.