AKUNA CAPITAL interview question

How do you make a binary tree into a linked list?