Javascript (ES6), <strike>84</strike> 80 bytes - i=>new Set(i,s=[...i]).size>2?[i,s.reverse().join``].indexOf(s.sort().join``):-1 Where wavy increasing is 0, decreasing is 1, and -1 is not wavy.