UKG Interview Question

I was asked to Flatten a binary Tree from its roots.