isRotation

Given two string s1 and s2 how will you check if s1 is a rotated version
of s2 ? like "abcdefg" and "defgabc"