In India, the correct spelling is “favourite.” Indians use British English, so “favourite” is the preferred spelling.
However, you’ll still see “favorite” sometimes because American English is widely used online and in the media.
But if you’re writing something formal or for school, stick with “favourite.”