Anonymous interview question

Both theoretical and coding questions