Apple Interview Question

Write a SV model for comparator