IDZ Digital interview question

Logical question after face to face round