A: Fasting is obligatory for a person if he/she fulfils five conditions:
1- is a Muslim
2- is accountable (mukallaf) ~ reached the age of puberty & is of sound mind
3- is able to fast
4- is settled (not travelling)
5- There are no impediments to fasting
If these five conditions are met, then it is obligatory for a person to fast.