NamasteScale needs JavaScript to run. Enable it to practise system design, low level design and machine coding.
Use a Proxy so arr[-1] reads the last item, the way Python lists work.