X by 2 Interview Question

the last question