Mobileye Interview Question

How to implement multiple matrix-scanning algorithms.