Amazon interview question

the testing problem