Levy interview question

completely bases on requirement