Anonymous interview question

asked to solve 4 technical questions