Links of the question is given to check validity of solutions go and paste there. Please commit the changes you think is important or something which needto be corrected.