Amazon interview question

stupid question to code and can't even run the code