Hey,
No I don't think there is any problem in having two years of gap after class10th as you might be having a valid reason for that.
There are few criteria of companies which doesn't allow students to sit for their placement if they have more than two years of gap ( like TCS, INFOSYS, etc)
But that is also secondary depending on the field you are pursuing as your career.
Remember one things there is no problem in having a two year gap untill you have the correct reason to justify it.
Hope that helps.
Thank you.
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile