Greenfish Interview Question

Logic test