it looks like it was a birth defect, with three toes facing forwards but the one facing backwards looks sore, so pleased you will get it checked by your vet. It will depend on how the foot can be manipulated on what your vet will advise, I will say do not use a perch in its cage that is rough or covered with a sand perch cover.