Origami Risk Interview Question

How does the UI communicate with the backend?