give n x n binary matrix mat target return true possible mat equal target rotate mat 90degree increment false example 1input mat 0110 target 1001output trueexplanation we rotate mat 90 degree clockwise mat equal targetexample 2input mat 0111 target 1001output falseexplanation it impossible mat equal target rotate matexample 3input mat 000010111 target 111010000output trueexplanation we rotate mat 90 degree clockwise time mat equal target Constraintsn matlength targetlengthn matilength targetilength1 n 10matij targetij 0 1