Electronegativity is the tendency of an element to attract the shared pair of electron towards itself in a covalently bonded compound.
All the given elements belong to 2 period of the periodic table.
Across a period:
Number of valence shell remains the same but number of valence electrons and effective nuclear charge increase in steps of one which increases the electronegativity.
Hence, the correct order will of electronegativity will be:
F > O > N > C