X by 2 interview question

the last question