Fujitsu Interview Question

that was a puzzle in the technical interview round