Added check if contest is F2F or Code to remove mandatory symbol

Signed-off-by: Shivam Dixit <shivamd001@gmail.com>