Pergunta de entrevista da empresa Amazon

Link all the siblings in a binary tree in O(n) without using queues or stacks.