Fox sequence working only on three sample inputs