RBC interview question

Approach to ambiguity with examples