IRIS Software Group interview question

Machine test was tough for me that time