Researchers discovered that a 215-million-year-old reptile started life on four legs and switched to two as an adult.