Agilent Technologies interview question

Code and domain knowledge required