With the help of Frontier molecular orbital, Huckel Mobius and Wood-Ward- Hoffmann rules, explain the stereochemistry of sigmatropic rearrangements under thermal and photochemical conditions.