Simple without extra space O(n) complexity

amazon
Tags: #<Tag:0x00007f2424cbc678>

#1

image