Zalora interview question

A program was asked

Interview Answer

Anonymous

26 Sept 2017

Solved it in 2 ways and was asked to optimize it