Ugam interview question

General interview and they tested logical thinking