Beinex Interview Question

To test logic there will be machine test