Apadmi interview question

Whiteboard question that changes every time