Option A and B both are correct
Option A is British English
Option B is American English

Both answers are technically correct and accepted in IELTS Exam