Contrado Imaging Interview Question

Basic c# and logical question