Started working on the invalid cases