1000$-5000$ challenge

Long -$LINK

SL 10.454