Hexadimensional interview question

Technical question