Verys interview question

Medium Difficulty Whiteboard question