Recology Interview Question

i didn't get this far