Ugam interview question

Logical questions