Zebra Technologies interview question

I was asked to code certain complicated algorithm live while in the interview.