NIO Interview Question

Whats the difference between a mealy and a moore machine