Amazon interview question

Code to exploit IDOR vulnerability