https://www.geecoders.com/2020/09/Reverse.html