A woman who burgled student accommodation with a friend more than four years ago, has been spared jail more than four years.