Hungama interview question

Many questions related to logic and coding