Apple interview question

Write a SV model for comparator