Alibaba Group interview question

How to reduce dimension