Ugam Interview Question

General interview and they tested logical thinking