UKG interview question

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