Pointers!

one pointer algorithm